/*
 * VOFA.c
 *
 *  Created on: 2025/1/25
 *      Author: doititit
 */
#include "VOFA.h"
vofa_sendata_struct vofa_sendata = {
    .data = {1, 2, 3, 4},
    .tail = {0x00, 0x00, 0x80, 0x7f}};

void VOFA_JustFloatSend(vofa_sendata_struct *structure)
{
    // uart_write_buffer(vofa_uart_index, (uint8_t *)structure, sizeof(vofa_sendata_struct));
    ESP01S_SendData((uint8_t *)structure, sizeof(vofa_sendata_struct));
    // uart_write_buffer(UART_0, (uint8_t *)structure, sizeof(vofa_sendata_struct));
}

void VOFA_Init(void)
{
   ESP01S_Init();
}